package com.aaron.sqlsession;

import java.sql.SQLException;
import java.util.List;

/**
 * @Description
 * @Author Aaron
 * @Version V1.0.0
 * @Since 1.0
 * @Date 2021/10/30
 */
public interface SqlSession {

    public <E> List<E> selectAll(String statementId,Object... params) throws Exception;

    public <T> T selectByCondition(String statementId,Object... params) throws Exception;

    public void close() throws SQLException;

    public <T> T getMapper(Class<?> mapperClass);
}
